<?php

class sfValidatorChoiceFlickrPhotoset extends sfValidatorChoice
{
  public function getChoices()
  {
    $choices = array();
    foreach($this->getOption('choices') as $photoset)
        $choices[] = $photoset['id'];

    if ($choices instanceof sfCallable)
    {
      $choices = $choices->call();
    }

    return $choices;
  }
}
